package ModelLayer;

import java.util.ArrayList;

public class Person

{
     private int personId;
     private String personName;
     private String personAdress;
     private int personZipCode;
     private String personCity;
     private int personTlf;
     private ArrayList<Lending>personLendings;
 
     public Person(int id, String name, String adress, int zipCode, String city, int tlf)
     {
     personId = id;
     personName = name;
     personAdress = adress;
     personZipCode = zipCode;
     personCity = city;
     personTlf = tlf;
     personLendings = new ArrayList<Lending>();
    }
    
    public void setPersonId(int newId) 
    {
        personId = newId;
    }
    public void setPersonName(String newName)
    {
        personName = newName;
    }
    public void setPersonAdress(String newAdress)
    {
        personAdress = newAdress;
    }
    public void setPersonZipCode(int newZipCode)
    {
        personZipCode = newZipCode;
    }
    public void setPersonCity(String newCity)
    {
        personCity = newCity;
    }
    public void setPersonTlf(int newTlf)
    {
        personTlf = newTlf;
    }
    public int getPersonId()
    {
        return personId;
    }
    public String getPersonName()
    {
        return personName;
    }
    public String getPersonAdress()
    {
        return personAdress;
    }
     public int getPersonZipCode()
    {
        return personZipCode;
    }
     public String getPersonCity()
    {
        return personCity;
    }
     public int getPersonTlf()
    {
        return personTlf;
    }
    
   
}
